export interface DrawingFormProps {
  messages: string
  scene: string
  model: string
  name: string
}

export interface VocabularyOptionsProps {
  label: string
  value: string
  options?: VocabularyOptionsProps[]
}

export async function getImages() {
  const list = []
  const files = import.meta.glob("@mind/assets/desc/*.png")
  for (const key in files) {
    const filename = key.replace(/(\.\/filename\/\.(png))/g, "")
    const match = filename.match(/\/([^\/]+)\.[a-zA-Z]+$/)
    const name = match && match[1]
    const path = await files[key]()
    list.push({
      // @ts-ignore
      path: path.default,
      name
    })
  }
  return list
}

export const getSceneImageList = () => getImages()

export const modelList: { model: string; name: string }[] = [
  {
    model: "专业",
    name: "专业"
  },
  {
    model: "平衡",
    name: "平衡"
  },
  {
    model: "创意",
    name: "创意"
  },
  {
    model: "离谱",
    name: "离谱"
  },
  {
    model: "荒谬",
    name: "荒谬"
  }
]
